package com.gxa.web_admin.controller;


import com.gxa.common.base.RespResult;
import com.gxa.modules.service.MainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/mainLoading/")
public class MainController {

    @Autowired
    private  MainService service;


//    页面预加载接口，控制到按钮级别哦！！！
    @GetMapping("view")
    @ResponseBody
    public RespResult menueInitData() {
        RespResult respResult = service.selectMainView();
        return respResult;
    }

}
